package com.loong.prototype;


public class WeeklyLog implements Cloneable {

    private Attachment attachment;
    private String content;
    private String date;
    private String name;

    public WeeklyLog() {
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
//		//深克隆
//        WeeklyLog weeklyLog = (WeeklyLog) super.clone();
//        weeklyLog.attachment = (Attachment) this.attachment.clone();
		//浅克隆
		WeeklyLog weeklyLog = (WeeklyLog) super.clone();
        return weeklyLog;
    }

    public Attachment getAttachment() {
        return attachment;
    }

    public String getContent() {
        return content;
    }

    public String getDate() {
        return date;
    }

    public String getName() {
        return name;
    }

    /**
     * 
     * @param newVal
     */
    public void setAttachment(Attachment newVal) {
        attachment = newVal;
    }

    /**
     * 
     * @param newVal
     */
    public void setContent(String newVal) {
        content = newVal;
    }

    /**
     * 
     * @param newVal
     */
    public void setDate(String newVal) {
        date = newVal;
    }

    /**
     * 
     * @param newVal
     */
    public void setName(String newVal) {
        name = newVal;
    }
}
